package com.ruoyi.attribute.mapper;

import java.util.List;
import com.ruoyi.attribute.domain.Facility;

/**
 * 设施Mapper接口
 * 
 * @author ruoyi
 * @date 2024-09-13
 */
public interface FacilityMapper 
{
    /**
     * 查询设施
     * 
     * @param id 设施主键
     * @return 设施
     */
    public Facility selectFacilityById(Long id);

    /**
     * 查询设施列表
     * 
     * @param facility 设施
     * @return 设施集合
     */
    public List<Facility> selectFacilityList(Facility facility);

    /**
     * 新增设施
     * 
     * @param facility 设施
     * @return 结果
     */
    public int insertFacility(Facility facility);

    /**
     * 修改设施
     * 
     * @param facility 设施
     * @return 结果
     */
    public int updateFacility(Facility facility);

    /**
     * 删除设施
     * 
     * @param id 设施主键
     * @return 结果
     */
    public int deleteFacilityById(Long id);

    /**
     * 批量删除设施
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFacilityByIds(Long[] ids);
}
